<template>
	<view class="adr_item">
		<view class="head">
			<view class="moren" v-if="data.moren==1">
				默认
			</view>
			<view class="address">
				{{data.address}}
			</view>
		</view>
		<view class="content">
			<view class="detail">
			{{data.detail}}
			</view>
			<slot></slot>
		</view>
		<view class="info">
			{{data.name}} {{data.phone}}
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			data: {
				type: Object,
				default: () => {
					{}
				}
			}
		},
	}
</script>

<style lang="scss">
	.adr_item {
		padding: 30rpx;
		border-bottom: 2rpx solid #ccc;
		background-color: #fff;
	}

	.head {
		display: flex;

		.moren {
			padding: 4rpx 14rpx;
			color: #fff;
			border-radius: 10rpx;
			background-color: #FF6000;
		}

		.address {
			margin-left: 20rpx;
			color: #9a9a9a;
		}
	}

	.content {
		display: flex;
		justify-content: space-between;
		align-items: center;

		.detail {
			padding: 10rpx;
			font-size: 36rpx;
			font-weight: 600;
			@include ell-mline(1);
		}
	}

	.info {
		color: #424242;
	}
</style>